<html> 
    <head> 
        <title>Test</title> 
    </head> 
    <script> 
        function openWindow() 
        { 
            window.runtime.trace("in"); 
            document.title = "foo" 
            window.open('url.html'); 
            window.runtime.trace("out"); 
        } 
    </script> 
    <body> 
        <a href="" onclick="openWindow()">window.open('url.html')</a> 
    </body> 
</html>